//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { UserWalletApply, UserWalletApplyResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooUserWalletApplyList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<UserWalletApplyResponse>(`/uctoo/user_wallet_apply/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooUserWalletApply = async (id: string) => {
  return requestClient.get<UserWalletApply>(`/uctoo/user_wallet_apply/${id}`);
};

export const adductooUserWalletApply = async (data: Partial<UserWalletApply>) => {
  return requestClient.post<UserWalletApply>('/uctoo/user_wallet_apply/add', data);
};

export const edituctooUserWalletApply = async (data: Partial<UserWalletApply>) => {
  return requestClient.post<UserWalletApply>('/uctoo/user_wallet_apply/edit', data);
};

export const deleteuctooUserWalletApply = async (id: string) => {
  return requestClient.post<any>('/uctoo/user_wallet_apply/del', { id });
};
